home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmSample
- BorderStyle = 1 'Fixed Single
- Caption = "Nuts"
- ClientHeight = 3885
- ClientLeft = 6420
- ClientTop = 2910
- ClientWidth = 5460
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 259
- ScaleMode = 3 'Pixel
- ScaleWidth = 364
- StartUpPosition = 1 'CenterOwner
- Begin VB.TextBox txtLenThread
- Height = 288
- Left = 1680
- TabIndex = 6
- Top = 2847
- Width = 855
- End
- Begin VB.ListBox List2
- Height = 255
- ItemData = "Nut2.frx":0000
- Left = 3960
- List = "Nut2.frx":000A
- TabIndex = 5
- Top = 120
- Width = 1335
- End
- Begin VB.ListBox List1
- Height = 1620
- ItemData = "Nut2.frx":001A
- Left = 240
- List = "Nut2.frx":002D
- TabIndex = 4
- Top = 480
- Width = 2295
- End
- Begin VB.TextBox txtdd
- Height = 285
- Left = 1680
- TabIndex = 3
- Top = 2400
- Width = 855
- End
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Height = 375
- Left = 4080
- TabIndex = 0
- Top = 3360
- Width = 1212
- End
- Begin VB.CommandButton cmdCancel
- Caption = "Cancel"
- Height = 375
- Left = 2640
- TabIndex = 1
- Top = 3360
- Width = 1215
- End
- Begin VB.Image PicPreview
- BorderStyle = 1 'Fixed Single
- Height = 2640
- Left = 2700
- Stretch = -1 'True
- Top = 465
- Width = 2595
- End
- Begin VB.Label Label2
- Caption = "Nut Type :"
- Height = 255
- Left = 240
- TabIndex = 8
- Top = 120
- Width = 1335
- End
- Begin VB.Label Label5
- Alignment = 1 'Right Justify
- Caption = "Thread Lenght (Lt) :"
- Height = 255
- Left = 120
- TabIndex = 7
- Top = 2880
- Width = 1455
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 1 'Right Justify
- Caption = "Diameter (d) :"
- Height = 255
- Left = 360
- TabIndex = 2
- Top = 2400
- Width = 1215
- End
- Attribute VB_Name = "frmSample"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- '/******************************************************************/
- '/* */
- '/* TurboCAD for Windows */
- '/* Copyright (c) 1993 - 2001 */
- '/* International Microcomputer Software, Inc. */
- '/* (IMSI) */
- '/* All rights reserved. */
- '/* */
- '/******************************************************************/
- ' Storage for read-only property indicating whether
- ' or not the dialog box was cancelled. Default is
- ' False. Note that the declaration is Private, so
- ' that the value cannot be set from the OLE client
- ' application. The client reads the value using the
- ' DialogCancelled property.
- Private blnDialogCanceled As Boolean
- ' Read-only property indicating cancellation of the
- ' dialog.
- Property Get DialogCanceled() As Boolean
- DialogCanceled = blnDialogCanceled
- End Property
- Private Sub cmdCancel_Click()
- ' Set the value of the read-only property that
- ' tells the caller the dialog was cancelled.
- blnDialogCanceled = True
- Me.Hide
- End Sub
- Private Sub cmdOK_Click()
- Me.Hide
- End Sub
- Private Sub Form_Load()
- Dim i%, iDef%
- For i = 0 To List1.ListCount - 1
- If List1.List(i) = TypeN Then iDef = i
- Next i
- List1.ListIndex = iDef
- For i = 0 To List2.ListCount - 1
- If List2.List(i) = ViewN Then iDef = i
- Next i
- List2.ListIndex = iDef
- If List1.Text = "HexNut" Then PicPreview.Picture = LoadResPicture(101, 0)
- If List1.Text = "HexFlangeNut" Then PicPreview.Picture = LoadResPicture(102, 0)
- If List1.Text = "HexSlottedNut" Then PicPreview.Picture = LoadResPicture(103, 0)
- If List1.Text = "LowCrownNut" Then PicPreview.Picture = LoadResPicture(104, 0)
- If List1.Text = "SquareNut" Then PicPreview.Picture = LoadResPicture(105, 0)
- End Sub
- Private Sub Label3_Click()
- End Sub
- Private Sub List1_Click()
- If List1.Text = "HexNut" Then PicPreview.Picture = LoadResPicture(101, 0)
- If List1.Text = "HexFlangeNut" Then PicPreview.Picture = LoadResPicture(102, 0)
- If List1.Text = "HexSlottedNut" Then PicPreview.Picture = LoadResPicture(103, 0)
- If List1.Text = "LowCrownNut" Then PicPreview.Picture = LoadResPicture(104, 0)
- If List1.Text = "SquareNut" Then PicPreview.Picture = LoadResPicture(105, 0)
- End Sub
-